/*
 * @Author: ZAL 2177624751@qq.com
 * @Date: 2025-03-30 16:24:58
 * @LastEditors: ZAL 2177624751@qq.com
 * @LastEditTime: 2025-03-30 16:33:59
 * @FilePath: \shop_app_vue3d:\Users\21776\Desktop\毕设\fruit_backded\src\main\java\com\fruitshop\dto\ProductDTO.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package com.fruitshop.dto;

import lombok.Data;

import java.math.BigDecimal;

/**
 * 商品数据传输对象
 */
@Data
public class ProductDTO {
    private Integer id;
    private Integer categoryId;
    private String title;
    private String description;
    private String price;  // 前端期望格式化的价格: "￥xx.xx"
    private String unit;
    private String img_url;  // 与前端保持一致的命名
    private BigDecimal number;
} 